package com.glacier.common.core.enums;

/**
 * date 2023-12-11 16:49
 *
 * @author glacier
 * @version 1.0
 */
public enum SexType {
    FEMALE("女"),
    MALE("男"),
    UNKNOWN("未知");
    private final String value;

    SexType(String value) {
        this.value = value;
    }

    public String getValue() {
        return this.value;
    }

    public static SexType getSexType(String value) {
        SexType sex = null;
        for (SexType sexType : SexType.values()) {
            if (sexType.getValue().equals(value)) {
                sex = sexType;
                break;
            }
        }
        return sex;
    }
}
